package com.mhc.haval.dal.mapper.ext;

import com.mhc.haval.dal.mapper.FuncMapper;
import com.mhc.haval.dal.model.FuncDO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * MyBatis Ext Mapper for Func.
 */

@Mapper
@Repository
public interface FuncExtMapper extends FuncMapper {

    /**
     * select func list by staff id.
     */
    List<FuncDO> selectByStaffId(Long staffId);

    /**
     * select func list by role id.
     */
    List<FuncDO> selectByRoleId(Long roleId);

    /**
     * query FuncList By Condition.
     */
    List<FuncDO> queryFuncListByCondition(Map queryMap);

    int countByQueryMap(Map queryMap);

}